export const PARAMS_WECHAT_USER = [
     {
        type: "a-input",
        field: "name",
        title: "姓名",
        value: "",
        props: {placeholder:"请输入姓名"}
    },
    {
        type: "select",
        field: "authentication",
        title: "实名状态",
        value: "",
        options:[{value:'',label:'全部'},{value:1,label:'已小程序实名认证'},{value:2,label:'已短信实名认证'}],
        props: {placeholder:"请选择实名状态"}
    },
    {
        type: "a-range-picker",
        field: "day",
        title: "日期",
        value: [],
        props: {
            valueFormat:"YYYY-MM-DD"
        }
    },
    {
      type:'a-button',
      field:'search',
      props:{
          type:'primary',
          icon:"search"
      },
      children:['搜索'],
      emit: ['click'],
      emitPrefix: 'btn-search',
    },
    {
      type:'a-button',
      field:'reset',
      props:{
          type:'primary',
          icon:"setting"
      },
      children:['重置'],
      emit: ['click'],
      emitPrefix: 'btn-reset',
    }
]

export const COLUMNS_WECHAT_USER = [
    {
        title: '真实姓名',
        dataIndex: 'name',
    },
    {
        title: '实名状态',
        dataIndex: 'authentication',
        customRender: (text, row, index) => {
            if (row.idCardFront.length > 0) {
                return '已小程序实名认证'
            } else{
                return '已短信实名认证'
            }
            return '--'
        },
    },
    {
        title: '身份证号',
        dataIndex: 'idCard',
        scopedSlots: { customRender: 'idCard' }
    },
    {
        title: '手机号',
        dataIndex: 'phone',
    },
    {
        title: '身份证正反面照片',
        dataIndex: 'idCardFront',
        scopedSlots: { customRender: 'idCardFront' }
    },
    {
        title: '创建时间',
         dataIndex: 'createdTime'
    }
]
 export const OPTION_INLINE = {
    form: {layout: 'inline'},
    resetBtn: false,
    submitBtn: false
  }
  export const OPTION_BLOCK= {
    form: { layout: "vertical" },
    row:{gutter: 20},
    resetBtn: false,
    submitBtn: false
  }